#ifndef __SERVER_H__
#define __SERVER_H__

#include "connection.h"
#include <cstdint>

class WebSocketServer
{
public:
    WebSocketServer(const WebSocketServer& other) = delete;
    WebSocketServer& operator=(const WebSocketServer& other) = delete;

    WebSocketServer(boost::asio::io_context& io_context, uint16_t port);
    ~WebSocketServer() = default;

    void start_accept();

private:
    boost::asio::io_context& _ioc;
    boost::asio::ip::tcp::acceptor _acceptor;
};



#endif